package com.ssy.lingxi.marketing.model.bo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * 砍价 - BO
 * @author fhj
 * @date 2021/06/17
 * @version 2.0.0
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ApiModel(value = "11",description = "砍价")
public class BargainBO extends ActivityDefinedBO{

    private static final long serialVersionUID = 5153641520577584637L;
    /**
     * 每次砍价类型：1-随机金额 2-固定金额
     * */
    @NotNull(message = "每次砍价类型不能为空")
    @ApiModelProperty(dataType ="integer",value = "每次砍价类型：1-随机金额 2-固定金额")
    private Integer type;

    /**
     * 随机开始金额
     * */
    @ApiModelProperty(dataType ="float",value = "随机开始金额")
    private BigDecimal randomStartPrice;

    /**
     * 随机结束金额
     * */
    @ApiModelProperty(dataType ="float",value = "随机结束金额")
    private BigDecimal randomEndPrice;

    /**
     * 固定金额
     * */
    @ApiModelProperty(dataType ="float",value = "固定金额")
    private BigDecimal restrictPrice;

    /**
     * 同一用户帮砍价限制次数
     * */
    @NotNull(message = "同一用户帮砍价限制次数不能为空")
    @ApiModelProperty(dataType ="integer",value = "同一用户帮砍价限制次数")
    private Integer restrictNum;

    /**
     * 活动描述
     * */
    @ApiModelProperty(dataType ="string",value = "活动描述")
    private String describe;

}